<?php
$fruit = array('a' => 'apple', 'b' => 'banana', 'c' => 'cranberry');

reset($fruit);
while (list($key, $val) = each($fruit)) {
	echo "$key => $val\r\n";
}
 
$fruit = array('a' , 'b'  , 'c' );

reset($fruit);
while (list( $val) = each($fruit)) {
	echo "  $val\r\n";
}
